Thread: [site suggestion] syntax highlighting hack/mod for BB

  1. #31
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Anyway dwks, that's an awesome idea! (Err, what idea?)

    Turn codeform into a firefox plugin! Seriously... I reakon it'd be really thrifty, I'm not sure anything really exists that does that. Just make sure you release an Opera plugin too, I'm not a fan of firefox

  2. #32
    Devil™
    Join Date
    Oct 2007
    Location
    IIT-Kharagpur, India
    Posts
    104
    Quote Originally Posted by dwks View Post
    ... You mean blackle.com? ..
    ya.. that is what I meant

    Quote Originally Posted by dwks View Post
    It's already been done. http://cboard.cprogramming.com/showthread.php?t=88629
    "For" syntax highlighting was more popular by a factor of 3.

    I think it's generally accepted that syntax highlighting is a good idea -- it even seems to be a popular idea. (Either that, or the only people who read the threads entitled "syntax highlighting" are those who are in favour of it . . .)
    you did it once.. I can do it again.. and somebody else might do it once more..
    we can also make it sticky with a request to mod, and decide the quorum (if needed) and polling time span..
    IMHO all these are only possible if the admins/mods are willing to help us, and implement the coloring system if needed
    so i didnt put up a poll.. instead I am asking admins if they are willing to implement color coding if the poll succeeds..


    Quote Originally Posted by dwks View Post
    .. I'm not suggesting that all code should be syntax highlighted. I'm not even suggesting that code should be highlighted by default. I'm suggesting that the capability to highlight code is added, so that you can do it if you want to.
    yeah.. this is what I am suggesting too..
    like the code will be colored only if you specify the coloring mode
    something like if you only put [code="C"] as the starting tag..
    and the normal code will not be colored

    Quote Originally Posted by dwks View Post
    a "toggle highlighting" or "select highlighting style" drop-down box would probably be optimal, in my opinion.
    I would say this is the best in my opinion if the board could give..
    considering the cost of it (effort, price if it is some paid mod, server load, bandwidth consumption.. etc)

    Quote Originally Posted by citizen View Post
    Uh, no. In the comment you replied to I meant printer ink. Color toner. I hate the fact that toner these days lasts about 12 pages, and then it's over. True, you just need to go to the store and buy more ink, but I can think of better ways to spend like $25. If I want something to look nice, I print in color, but most of the time I don't. It has nothing to do with my screen.
    ya.. I know that, I was just kidding if you want to be some sort of miser saving micro watts from you monitor.. (more info of power saving)
    its good to save ink.. even I save the color ink.. there is no point in printing all the pages of your code in color just for your project report.. (AFAIK nobody cares your code on paper, they would like to see it working)
    but being a soft copy.. it is not a problem until the user has prob with color code..
    C's Motto: who cares what it means? I just compile it!!

  3. #33
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Aren't most computer screens LCD screens nowadays? Power consumption for LCD screens is completely insensitive to color, because LCD screens change the color by blocking the backlight, which is always on.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  4. #34
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Quote Originally Posted by Sang-drax View Post
    Aren't most computer screens LCD screens nowadays?
    If only. I think most new screens are LCD but I don't think the total population of monitors has shifted away from CRT yet.

    If something like this was to be done then there is really only one proper way to do it: CSS. Instead of doing inline styles with defined colors you use class names (i.e. class="keyword", class="comment", etc). That allows the user to override the stylesheet with their own class definations so they get the colors how they want (the colors used in dwks's are really bad too me). You can then also use the print media stylesheet to turn off the coloring.

  5. #35
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Quote Originally Posted by gibsosmat View Post
    if we want to do so.. then one for firefox, one for IE, one for safari, xyz browser etc..
    nah, I think we'd be pretty much covered with firefox and safari.

  6. #36
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    People use those two POS browsers? They are only a step above IE...


  7. #37
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Trying to derail the thread by starting a browser war?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #38
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    It'd be about as useful.

  9. #39
    Devil™
    Join Date
    Oct 2007
    Location
    IIT-Kharagpur, India
    Posts
    104

    Question

    well in that case.. everyone make their own plugin for their browser
    or join me in this campaign and vote for 'I need colored codes'

    Before that..
    Admins/Mods tell me if this is a fair poll and you will put up color coding system if this poll succeeds?

    time for the poll 10 days..
    Suggested poll
    Your comment on colored syntax highlighting/code highlighting on this Board
    • I need it. (2pts)
    • It will be useful/comfortable for me.(1pts)
    • I dont have prob with/without highlighting. (0pts)
    • It will not be useful/comfortable for me. (-1pts)
    • I hate it. (OR) I have problem with that. (-2pts)
    C's Motto: who cares what it means? I just compile it!!

  10. #40
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Er that's a retarded poll. Either you want highlighting or you don't their can't be in between.

    In case you haven't noticed this board isn't a democracy -- because the community doesn't pay to have it run. In the end it's up to those who run and pay for these boards.

  11. #41
    Devil™
    Join Date
    Oct 2007
    Location
    IIT-Kharagpur, India
    Posts
    104
    hmm.. may be there is no need of so many choices..
    I just put it up so that ppl will choose what is appropriate for them..
    if there were only 2, what would someone like who dont want color coding so much as the others want..
    so to fulfill them I put it up..

    ya.. I did notice it.. democracy will be something that involves us everywhere, here we are paying nothing for the boards expenses..
    so I did ask the admins to consider the cost of putting up color coding
    Quote Originally Posted by gibsosmat View Post
    considering the cost of it (effort, price if it is some paid mod, server load, bandwidth consumption.. etc)
    if they confirm that its difficult in the current scenario then, I will save my breath
    there is no point discussing it again and again if they cant put it up for some administrative reasons..

    I am thankful to this board with or without the code coloring..

    its just a wish to have highlighting..
    if it is fulfilled it will be fantastic, else its already fine the way it is
    except few unlucky ppl rest all have color coding editors and god gave hands to work
    C's Motto: who cares what it means? I just compile it!!

  12. #42
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Quote Originally Posted by Thantos View Post
    (the colors used in dwks's are really bad too me)
    Mmm hmm, I sort of picked them at random, and I'm overly fond of blue . . . but you can easily use the Dev-C++ or SciTE styles, which is someone else's idea of nice colours, or create your own rules file based on these, incorporating your idea of nice colours.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM